package com.aaa.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("f_cart")
public class Fcart {
    @TableId(type = IdType.AUTO)
    private Integer id;
    @TableField("f_user")
    private Integer fuser;
    private Integer book;
    private String time;
    private Integer number;
    private double price;
    @TableField(exist = false)
    private List<Book> books;
    @TableField("activity")
    private Integer activity;
}
